<template>
    <div class="card">
        <div class="left">
            <p><span class="card-name">{{ date.name }}</span>{{ date.age }}岁</p>
            <p>研究领域:{{ date.researchArea }}</p>
            <p>{{ date.university }}·{{ date.position }}</p>
        </div>
        <div class="right">
            <button>+关注</button>
        </div>
    </div>
</template>
<script>
export default {
  props:['date'],
  data() {
    return {
    };
  }
};
</script>
<style scoped>
.card {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card .card-name{
    font-size: 20px;
    font-weight: 700;
    color: #000;
    display: inline-block;
    margin-right: 10px;
}
.left p{
    font-size: 14px;
    color: #999;
}

.right button {
    width: 80px;
    height: 30px;
    border-radius: 15px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border: none;
}

.right button:hover {
    opacity: 0.8;
}
</style>